﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Security.Cryptography;
using ApiBetaSeries.Factories;
using ApiBetaSeries.Model;

namespace ApiBetaSeries
{
    public static class BetaSeriesConfig
    {
        private static string m_apiKey;

        /// <summary>
        /// Required key to use api (see http://betaseries.com/apropos/api)
        /// </summary>
        public static string ApiKey
        {
            get
            {
                if (string.IsNullOrEmpty(m_apiKey))
                    throw new Exception("You have to set the api key before using the api");

                return m_apiKey;
            }
            set
            {
                m_apiKey = value;
            }
        }
        /// <summary>
        /// Url of the api betaSeries
        /// </summary>
        public static string UrlApiBetaSeries  {get; set;}
        static BetaSeriesConfig()
        {
            UrlApiBetaSeries = @"http://api.betaseries.com";
        }



    }
}
